package DBLayer;

import static org.junit.Assert.*;

import java.util.ArrayList;
import java.util.List;

import modelLayer.SalesOrder;
import modelLayer.Supplier;

import org.junit.After;
import org.junit.Before;
import org.junit.Test;

public class DBSupplierTest {
	
	private static IFDBSupplier dbSup = new DBSupplier();

	@Before
	public void setUp() throws Exception {
	}

	@After
	public void tearDown() throws Exception {
	}

	@Test
	public void testGetAll() {
		p("");
		List<Supplier> list = new ArrayList<Supplier>();
		
		list = dbSup.getAll(true);
		
		if(list.isEmpty())
		{
			
		}
		else
		{
			
			p("SalesOrder List:");
			for(Supplier s : list)
			{
				p("salesorder id :"+s.getSupplierID());
			}
		}
	}

	@Test
	public void testFindSupplier() {
		fail("Not yet implemented");
	}

	@Test
	public void testSearchName() {
		fail("Not yet implemented");
	}

	@Test
	public void testSearchAddress() {
		fail("Not yet implemented");
	}

	@Test
	public void testSearchPhoneNo() {
		fail("Not yet implemented");
	}

	@Test
	public void testInsertSupplier() {
		fail("Not yet implemented");
	}

	@Test
	public void testUpdateSupplier() {
		fail("Not yet implemented");
	}

	@Test
	public void testDeleteSupplier() {
		fail("Not yet implemented");
	}
	
	public void p(String e)
	{
		System.out.println(e);
	}

}
